package com.jin.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;
/**
 * Created on 2025/2/24.
 * @description 矿车的载量记录
 * @author Zhongyuan Jin
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "truck_record")
@ToString
public class TruckRecord {
    @TableId(type = IdType.AUTO)
    private Long id;// 运输记录ID
    public String uuid;// 唯一标识ID

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;// 矿车的运输时间点
    private String plate;//  矿车的车牌号
    private double density;//  矿石的密度
    private double volume;// 矿石的体积
    private double weight;//  矿石的重量
    private Integer scanStatus;// 扫描状态，标识本地端扫描矿车的进度
    private Integer syncStatus;//  同步状态,标识本地端是否与云端同步

    @JsonProperty("unitName")
    private String unitName;//  矿车的所属单位
    @JsonProperty("gateName")
    private String gateName;// 矿车出入的门牌
    @JsonProperty("materialName")
    private String materialName;//  矿石的名称

    private Integer unitId; // 所属单位ID
    private Integer gateId; // 门岗ID
    private Integer materialId; // 材料ID
}
